package com.my.batis.dao.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import com.my.batis.dao.UserInfoDao;
import com.my.batis.entiy.UserInfo;
import com.my.batis.mapper.UserInfoMapper;

@Component
public class UserInfoDaoImpl implements UserInfoDao {

	@Autowired
	private UserInfoMapper userInfoMapper;
	
	@Override
	public Integer insert(UserInfo userInfo) {
		System.out.println("111111");
		return userInfoMapper.insert(userInfo);
	}

	@Override
	public Integer updateByPrimaryKey(UserInfo userInfo) {
		return null;
	}

	@Override
	public Integer delete(Integer id) {
		return null;
	}

	@Override
	public List<UserInfo> getAll(UserInfo userInfo) {
		return userInfoMapper.getAll(userInfo);
	}

	@Override
	public Integer getCount(UserInfo userInfo) {
		return null;
	}

	@Override
	public UserInfo getOne(UserInfo userInfo) {
		return null;
	}

}
